package org.si.graphics;

import java.awt.Color;
import java.awt.MultipleGradientPaint;
import java.awt.geom.AffineTransform;

/**
 * Basic abstract base class for creating a paint provider for MultipleGradientPaint subclasses.
 */
public abstract class MultipleGradientPaintProvider implements PaintProvider {

    protected final float[] fractions;
    protected final Color[] colors;
    protected final MultipleGradientPaint.CycleMethod cycleMethod;
    protected final MultipleGradientPaint.ColorSpaceType colorSpace;
    protected final AffineTransform gradientTransform;





    protected MultipleGradientPaintProvider(float[] fractions,
                                         Color[] colors,
                                         MultipleGradientPaint.CycleMethod cycleMethod,
                                         MultipleGradientPaint.ColorSpaceType colorSpace,
                                         AffineTransform gradientTransform) {
        this.fractions = fractions;
        this.colors = colors;
        this.cycleMethod = cycleMethod;
        this.colorSpace = colorSpace;
        this.gradientTransform = gradientTransform;
    }
}
